package com.qianying.service;

import com.qianying.dto.DeleteRequestByIdDTO;
import com.qianying.dto.OrderDTO;
import com.qianying.dto.OrderGetDataRequestDTO;

import java.util.Map;

public interface OrderService {

    /**
     * 保存一个订单
     * @param orderDTO
     * @return
     */
    OrderDTO saveData(OrderDTO orderDTO);

    /**
     * 获取一个订单
     * @param orderGetDataRequestDTO
     * @return
     */
    Map<String,Object> getData(OrderGetDataRequestDTO orderGetDataRequestDTO);

    /**
     * 删除一个订单
     * @param deleteRequestByIdDTO
     * @return
     */
    boolean deleteData(DeleteRequestByIdDTO deleteRequestByIdDTO);


}
